package com.zzccyy.jpdemo.utils;

import com.prolificinteractive.materialcalendarview.format.WeekDayFormatter;

import org.threeten.bp.DayOfWeek;

public class ChineseWeekDayFormatter implements WeekDayFormatter {

    private final String[] weekDays = {"日", "一", "二", "三", "四", "五", "六"};


    @Override
    public CharSequence format(DayOfWeek dayOfWeek) {
        return weekDays[dayOfWeek.getValue() - 1];
    }
}